<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function load(){
			let xhr=new XMLHttpRequest()
			xhr.open("GET","data.text",false)
			xhr.send()
			let data=xhr.responseText
			document.querySelector("span").textContent=data
			}
		</script>
	</head>
	<body>
		同步请求文本的数据是：<span></span><br>
		<button type="button" onclick="load()">传输数据</button>
	</body>
</html>
